<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .one {
            height: 200px;
            font-size: 100px;
            line-height: 200px;
            text-align: center;
            background-image: url('../html+css/images/04-2.avif');
            background-size: cover;
            background-position: center;
            /* 重要代码 */
            color: rgba(0,0,0,.2);
            background-clip: text;
            -webkit-background-clip: text;
        }
    </style>
</head>
<body>
    <div class="one">我是一段文字</div>
</body>
</html>
